import re
str = '''dgned@123.com    sdfadf@.com
efddfd124@180.com df2dhtd@123.com
dflfdfi@139.com   feffzd.com
defgdf@.sodf.com.com '''
pattern = re.compile(r'\w+@\w+\.com')
match = pattern.findall(str)
print(match)
